package com.runda.system.service;


import java.util.List;

import com.bbjob.model.SysFunction;
import com.bbjob.util.service.IService;

/**
 * 菜单以及权限管理
 * @author DongYang
 *
 */
public interface MenuService extends IService<SysFunction>{
	
	public int saveMenu(SysFunction menu);
	
	public int editMenu(SysFunction menu);
	
	public int deleteMenu(Integer id);
	
	public List<SysFunction> selectTreeByPid(Integer pid);
	
	/**
	 * 根据用户id获取母菜单
	 * @param userid
	 * @return
	 */
	public List<SysFunction> getMotherMenu(Integer userid);
	
}
